#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <math.h>

int main() {
    float a = 0;
    float b = 0;
    float c = 0;
    while (scanf("%f %f %f", &a, &b, &c) == 3)
    {
        if (a == 0)
        {
            printf("Not quadratic equation");
        }
        else
        {
            float delta = b * b - 4 * a * c;
            if (delta == 0)
            {
                if (b == 0)
                    printf("x1=x2=0.00\n");
                else
                    printf("x1=x2=%.2f\n", -b / (2 * a));
            }
            else if (delta > 0)
            {
                printf("x1=%.2f;x2=%.2f\n", (-b - sqrt(delta)) / (2 * a),
                    (-b + sqrt(delta)) / (2 * a));
            }
            else
            {
                printf("x1=%.2f-%.2fi;x2=%.2f+%.2fi\n", -b / (2 * a),
                    sqrt(-delta) / (2 * a), -b / (2 * a), sqrt(-delta) / (2 * a));
            }
        }
    }
    return 0;
}